package index;

public class instanceOfStudent {
    //测试类
    public static void main(String[] args) {
        //创建对象
        Student stu =new Student();
        //添加属性
        stu.name="xiaoming";
        stu.age=20;
        stu.gender="male";
        System.out.println(stu.name);
        System.out.println(stu.age);
        System.out.println(stu.gender);
//特征
        stu.playGame();
        stu.study();
        stu.sleep();
    }
}
